package uba.ing2.subite.domain;

import java.io.Serializable;

public class PrepaidCard extends AbstractPaymentCard {
	private Serializable accountIdentifier;

	public PrepaidCard(Serializable cardIdentifier, Serializable accountIdentifier, Number moneyAvailable) {
		super(cardIdentifier, moneyAvailable);
		this.accountIdentifier = accountIdentifier;
	}

	@Override
	public void accept(PaymentCardVisitor visitor) {
		visitor.visitPrepaidCard(this);
	}

	public Serializable accountIdentifier() {
		return accountIdentifier;
	}
	
	@Override
	public String toString() {
		return "Prepaga " + identifier() + " (" + accountIdentifier() + ")";
	}
}
